import React from 'react';
import ReactDOM from 'react-dom';
import '@/assets/layout.scss';

const isDev = process.env.NODE_ENV === 'development';

if (isDev) {
  localStorage.token = process.env.VUE_APP_TOKEN;
  require('antd/dist/antd.css');
  require('@/assets/dev-container.scss');
}

export function mountApp(App) {
  ReactDOM.render(<App />, document.querySelector('#app'));
}
